package com.blindBox.front.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blindBox.front.dao_pojo.User;
import com.blindBox.front.mapper.UserMapper;
import com.blindBox.front.service.UserService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
   private UserMapper userMapper;
    @Override
    public boolean add_user_lauch_num(Integer u_id) {
        return userMapper.add_user_lauch_num(u_id);
    }

    @Override
    public boolean add_user_take_num(Integer u_id) {
        return userMapper.add_user_take_num(u_id);
    }

    @Override
    public void clear_all_user_status() {
        userMapper.clear_all_user_status();
    }

    @Override
    public void up_user_take_num(Integer u_id, Integer num) {
        userMapper.up_user_take_num(u_id,num);
    }

}
